package top.jingles.utils.args;

import lombok.Data;

@Data
public class Option {
    String opt;
    String longOpt;
    boolean hasArg;
    String description;
    DealFunction dealFunction;

    public Option() {
        setOpt("");
        setLongOpt("");
        setHasArg(false);
        setDescription("");
        setDealFunction(new DealFunction() {
            public boolean Deal(String argValue) {
                System.out.println("未实现的处理函数");
                return false;
            }
        });
    }

	public Option(String opt, String longOpt, boolean hasArg, String description, DealFunction func) {
        setOpt(opt);
        setLongOpt(longOpt);
        setHasArg(hasArg);
        setDescription(description);
        setDealFunction(func);
	}
}